package com.ly.mpayment.persist.entity;

import java.util.Date;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * Operators entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="operators"

)

public class Operators  implements java.io.Serializable {


    // Fields

     private String operatoruid;
     private String operatorname;
     private Date createtime;
     private String status;
     private String remark;
     private String code;
//     private Set<BusinessType> businessTypes = new HashSet<BusinessType>(0);
//     private Set<UpShopPro> upShopPros = new HashSet<UpShopPro>(0);
//     private Set<DownShopProduct> downShopProducts = new HashSet<DownShopProduct>(0);


    // Constructors

    /** default constructor */
    public Operators() {
    }



    public Operators(String operatoruid) {
	this.operatoruid = operatoruid;
}



	/** full constructor */
    public Operators(String operatorname, Date createtime, String status, String remark, Set<BusinessType> businessTypes, Set<UpShopProduct> upShopPros, Set<DownShopProduct> downShopProducts) {
        this.operatorname = operatorname;
        this.createtime = createtime;
        this.status = status;
        this.remark = remark;
//        this.businessTypes = businessTypes;
//        this.upShopPros = upShopPros;
//        this.downShopProducts = downShopProducts;
    }


    // Property accessors
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="operatoruid", unique=true, nullable=false, length=40)

    public String getOperatoruid() {
        return this.operatoruid;
    }

    public void setOperatoruid(String operatoruid) {
        this.operatoruid = operatoruid;
    }

    @Column(name="operatorname", length=40)

    public String getOperatorname() {
        return this.operatorname;
    }

    public void setOperatorname(String operatorname) {
        this.operatorname = operatorname;
    }

    @Column(name="createtime", length=19)

    public Date getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Column(name="status", length=40)

    public String getStatus() {
        return this.status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Column(name="remark", length=1000)

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name="code")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}


//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="operators")
//
//    public Set<BusinessType> getBusinessTypes() {
//        return this.businessTypes;
//    }
//
//    public void setBusinessTypes(Set<BusinessType> businessTypes) {
//        this.businessTypes = businessTypes;
//    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="operators")
//
//    public Set<UpShopPro> getUpShopPros() {
//        return this.upShopPros;
//    }
//
//    public void setUpShopPros(Set<UpShopPro> upShopPros) {
//        this.upShopPros = upShopPros;
//    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="operators")
//
//    public Set<DownShopProduct> getDownShopProducts() {
//        return this.downShopProducts;
//    }
//
//    public void setDownShopProducts(Set<DownShopProduct> downShopProducts) {
//        this.downShopProducts = downShopProducts;
//    }
//








}
